package com.spzx.manager.service;

import com.github.pagehelper.PageInfo;
import com.spzx.model.dto.system.AssginRoleDto;
import com.spzx.model.dto.system.LoginDto;
import com.spzx.model.dto.system.SysUserDto;
import com.spzx.model.entity.system.SysUser;
import com.spzx.model.vo.system.LoginVo;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.service
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2023/11/30 20:34
 */
public interface SysUserService {
    //用户登陆
    LoginVo login(LoginDto loginDto);

    //获取当前用户信息
    SysUser getUserInfo(String token);

    //退出登陆
    void logout(String token);

    //用户分页查询接口
    PageInfo<SysUser> findByPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    //用户添加
    void saveSysUser(SysUser sysUser);

    //用户修改
    void updateSysUser(SysUser sysUser);

    //用户删除
    void deleteById(Long userId);

    //用户分配角色
    void doAssign(AssginRoleDto assginRoleDto);
}
